#!/bin/bash


# Delete the link to the binary
rm -f '/usr/bin/telegram-desktop'
# Delete the link 

if [ "$1" = "remove" ] || [ "$1" = "purge" ];then

echo "清理卸载残留"
for username in `ls /home`      
    do
      echo /home/$username
        if [ -e /home/$username/.local/share/applications/org.telegram.desktop* ]
        then
        rm -f /home/$username/.local/share/applications/org.telegram.desktop*
        fi
    done
else
echo "非卸载，跳过清理"
fi

